<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        html,
        body {
            padding: 0;
            margin: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .container {
            width: 300px;
            height: 300px;
            margin: 0 auto;
            margin-top: 100px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            grid-template:
                "A A B"
                "C D B"
                "C E E";
            gap: 5px;
        }

        .item {
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid;
            overflow: hidden;
        }

        .item:nth-child(1) {
            grid-area: A;
        }

        .item:nth-child(2) {
            grid-area: B;
        }

        .item:nth-child(3) {
            grid-area: C;
        }

        .item:nth-child(4) {
            grid-area: D;
        }

        .item:nth-child(5) {
            grid-area: E;
        }

        .container {
            --r: 360deg;
        }

        .item img {
            --r: -360deg;
        }

        .item img {
            width: 260%;
            height: 260%;
            object-fit: cover;
        }

        .container,
        .item img {
            animation: rotation 10s linear infinite;
        }

        @keyframes rotation {
            to {
                transform: rotate(var(--r));
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="item"><img src="../../image/1.jpg" alt=""></div>
        <div class="item"><img src="../../image/2.jpg" alt=""></div>
        <div class="item"><img src="../../image/3.jpg" alt=""></div>
        <div class="item"><img src="../../image/4.jpg" alt=""></div>
        <div class="item"><img src="../../image/5.jpg" alt=""></div>
    </div>
</body>

</html>